/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package tiebreak.BL;

import java.sql.SQLException;
import java.util.ArrayList;
import tiebreak.BE.MembershipType;
import tiebreak.BE.Settings;
import tiebreak.DAL.DalcAccounting;

/**
 *
 * @author Låner
 */
public class Accounting {
    public static ArrayList<MembershipType> getMembershipTypes() throws SQLException
    {
        return DalcAccounting.getMembershipTypes();
    }

    public static ArrayList<MembershipType> getPriceByType(String memberType) throws SQLException
    {
        return DalcAccounting.getPriceByType(memberType);
    }

    public static ArrayList<MembershipType> UpdatePrice(int price) throws SQLException
    {
        return DalcAccounting.UpdatePrice(price);
    }

    public static ArrayList<Settings> getFees() throws SQLException
    {
        return DalcAccounting.getFees();
    }

    public static void setEliteAndSchool(int elitePrice, int schoolPrice) throws SQLException
    {
        DalcAccounting.setEliteAndSchool(elitePrice, schoolPrice);
    }

    public static void setMemberTypeFee(String memberType, int fee) throws SQLException
    {
        DalcAccounting.setMemberTypeFee(memberType, fee);
    }

    public static ArrayList<MembershipType> getMembershipTypeFee(String type) throws SQLException
    {
        return DalcAccounting.getMembershipTypeFee(type);
    }
}
